package gameStates;

import gameStates.absGamesStates.AbsBasicState;
import gameStates.passes.AbsPassManagerState;
import input.BasicInput;

import com.jme.input.InputHandler;

public class BasicGameState extends AbsBasicState {
		
	private InputHandler inputHandler;
	
	public BasicGameState(AbsPassManagerState passManagerState) {
		super("basic", passManagerState, true);
		
		inputHandler = new BasicInput(rootNode);
	}
	
	@Override
	public void update(float tpf) {
		inputHandler.update(tpf);
		
		rootNode.updateGeometricState(tpf, true);
		rootNode.updateRenderState();
	}
	
	@Override
	public void enableInput(boolean enable) {}
	
	@Override
	public void render(float tpf) {}
	
	@Override
	public void restore() {}
}